package com.vc.aha_server_event.service;


import com.vc.aha_server_event.dto.SearchPreferencesDto;
import com.vc.aha_server_event.dto.TravelProjectDto;
import com.vc.aha_server_event.entity.SearchPreferences;
import com.vc.aha_server_event.entity.TravelProjectNum;
import org.springframework.data.mongodb.core.MongoTemplate;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.Date;
import java.util.List;

/**
 * @author pcy
 *
 * @date 2022/04/05
 */
@Service
public class SearchPreferencesService {
    @Resource
    private MongoTemplate mongoTemplate;

    public void saveSearchPreferences(Integer eventId, String time, SearchPreferences searchPreferences){

        mongoTemplate.save(SearchPreferencesDto.builder().eventId(eventId).time(time).searchPreferences(searchPreferences).build());
    }

}
